<?php
	include("initialize.php");
?>
<html>
<head>
	<title>GradeGrid - Account Home</title>
	<?php include("header.php"); ?>
	<script type="text/javascript" language="javascript">
		function viewClass(v){
			var current = document.getElementById("myclass"+v)
			current.innerHTML = "<table border='1' class='pMirror'><tr><td>Student Name:</td><td>Technical Proficiency (10)</td><td>Combat Proficiency (50)</td><td>Total</td></tr><tr><td>Alpert, Ricardus</td><td>8</td><td>40</td><td></td></tr><tr><td>Skytreader, Loki</td><td>10</td><td>45</td><td></td></tr><tr><td>Skywalker, Anakin</td><td>10</td><td>48</td><td></td></tr></table>"
			}
	</script>
	
</head>
<body onLoad="writeCopyright()">
	<div class="main">
		
		<?php include("boilerplate.php"); ?>
		<?php include("loginnavigation.php"); ?>
		
		<?php //if($_SESSION["logged_in"]): ?>
			<div style="float: left;">
			<a href="grid_classes.php" style="padding: 5px; width: 10%; text-align: center;">Grid View</a>
			<span style="background-color: #DADADA; padding: 5px; font-family: Arial; font-size: 13px; width: 10%; text-align: center;">List View</span>
			<table border="0">
			
			<tr>
			<td align="right"><b class="pMirror">Advanced Force Manipulation - TTh4</b></td>
			<td><input type="button" value="Manage Class" onClick="location.href='settings.php?page=class'"></td>
			<td><input type="button" value="Delete" onClick = "return confirm('Are you sure you want to delete?')"></td>
			<td><input type="button" value="Edit Templates" disabled="disabled" onClick="location.href='manage_template.php'"></td>
			<td><input type="button" value="Class Record" onClick="viewClass(1)" /></td>
			</tr>
			<tr><td colspan="5" id="myclass1" align="center"></td></tr>

			<tr>
			<td align="right"><b class="pMirror">Diplomatic Relations - MWF4</b></td>
			<td><input type="button" value="Manage Class" onClick="location.href='settings.php?page=class'"></td>
			<td><input type="button" value="Delete" onClick = "return confirm('Are you sure you want to delete?')"></td>
			<td><input type="button" value="Edit Templates" onClick="location.href='manage_template.php'"></td>
			<td><input type="button" value="Class Record" onClick="viewClass(2)" /> <br /></td>
			</tr>
			<tr><td colspan="5" id="myclass2" align="center"></td></tr>
			
			<tr>
			<td align="right"><b class="pMirror">Lightsaber Training - WF1</b></td>
			<td><input type="button" value="Manage Class" onClick="location.href='settings.php?page=class'"></td>
			<td><input type="button" value="Delete" onClick = "return confirm('Are you sure you want to delete?')"></td>
			<td><input type="button" value="Edit Templates" onClick="location.href='manage_template.php'"></td>
			<td><input type="button" value="Class Record" onClick="viewClass(3)" /> <br /></td>
			<tr><td colspan="5" id="myclass3" align="center"></td></tr>
			
			<tr>
			<td align="right"><b class="pMirror">Wookie Psychology - MWF2</b></td>
			<td><input type="button" value="Manage Class" onClick="location.href='settings.php?page=class'"></td>
			<td><input type="button" value="Delete" onClick = "return confirm('Are you sure you want to delete?')"></td>
			<td><input type="button" value="Edit Templates" onClick="location.href='manage_template.php'"></td>
			<td><input type="button" value="Class Record" onClick="viewClass(4)" /> <br /></td>
			<tr><td colspan="5" id="myclass4" align="center"></td></tr>
			
			</table>
			
			<p> <input type="button" value="Add classes"onClick="window.open('new_class.php', '', 'width=500, height=500')"/> </p>
			</p>
			</div>
		<?php //else: ?>
			<?php //executeFile("../files/access_error.txt"); ?>
		<?php //endif ?>
	</div>
	<div id="copywright"></div>
</body>
</html>